package pe.com.bn.sach.domain;

/**
 * Bnchf23ExpDetTitAdicId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Bnchf23ExpDetTitAdicId implements java.io.Serializable {

	// Fields

	private Bnchf23ExpIngrTitAdic bnchf23ExpIngrTitAdic;
	private Long f23IdDetalle;

	// Constructors

	/** default constructor */
	public Bnchf23ExpDetTitAdicId() {
		bnchf23ExpIngrTitAdic=new Bnchf23ExpIngrTitAdic ();
	}

	/** full constructor */
	public Bnchf23ExpDetTitAdicId(Bnchf23ExpIngrTitAdic bnchf23ExpIngrTitAdic,
			Long f23IdDetalle) {
		this.bnchf23ExpIngrTitAdic = bnchf23ExpIngrTitAdic;
		this.f23IdDetalle = f23IdDetalle;
	}

	// Property accessors

	public Bnchf23ExpIngrTitAdic getBnchf23ExpIngrTitAdic() {
		return this.bnchf23ExpIngrTitAdic;
	}

	public void setBnchf23ExpIngrTitAdic(
			Bnchf23ExpIngrTitAdic bnchf23ExpIngrTitAdic) {
		this.bnchf23ExpIngrTitAdic = bnchf23ExpIngrTitAdic;
	}

	public Long getF23IdDetalle() {
		return this.f23IdDetalle;
	}

	public void setF23IdDetalle(Long f23IdDetalle) {
		this.f23IdDetalle = f23IdDetalle;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bnchf23ExpDetTitAdicId))
			return false;
		Bnchf23ExpDetTitAdicId castOther = (Bnchf23ExpDetTitAdicId) other;

		return ((this.getBnchf23ExpIngrTitAdic() == castOther
				.getBnchf23ExpIngrTitAdic()) || (this
				.getBnchf23ExpIngrTitAdic() != null
				&& castOther.getBnchf23ExpIngrTitAdic() != null && this
				.getBnchf23ExpIngrTitAdic().equals(
						castOther.getBnchf23ExpIngrTitAdic())))
				&& ((this.getF23IdDetalle() == castOther.getF23IdDetalle()) || (this
						.getF23IdDetalle() != null
						&& castOther.getF23IdDetalle() != null && this
						.getF23IdDetalle().equals(castOther.getF23IdDetalle())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getBnchf23ExpIngrTitAdic() == null ? 0 : this
						.getBnchf23ExpIngrTitAdic().hashCode());
		result = 37
				* result
				+ (getF23IdDetalle() == null ? 0 : this.getF23IdDetalle()
						.hashCode());
		return result;
	}

}